package com.coolwen.spring.speciality.model;

import org.springframework.stereotype.Component;

/**
 * @author CoolWen
 * @version 2020-04-09 9:11
 */
@Component
public class Book {
    private String name;
    private double price;

    public Book() {
    }

    public Book(String name, double price) {
        this.name = name;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
